package cs342.uwosh.group1.mycontacts.Threads;



import cs342.uwosh.group1.mycontacts.Category;
import cs342.uwosh.group1.mycontacts.MainActivity;
import cs342.uwosh.group1.mycontacts.SqlConnect;

import android.os.AsyncTask;

public class GetCategoryByIdTask extends AsyncTask<Object, Integer, Category>{

	@Override
	protected Category doInBackground(Object... arg0) {
		SqlConnect db = MainActivity.db;
		arg0[2] = db.getCategory((Integer)arg0[1]);
		return db.getCategory((Integer)arg0[1]);
	}

}